<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">

                <div class="row">
                    <div class="col-12">
                        <div class="doctor-calendar-table table-responsive">
                            <div>固定排班（日常的固定安排）</div>
                            <table class="table">
                                <thead>
                                <tr>
                                    <th>星期</th>
                                    <th>周一</th>
                                    <th>周二</th>
                                    <th>周三</th>
                                    <th>周四</th>
                                    <th>周五</th>
                                    <th>周六</th>
                                    <th>周日</th>
                                </tr>
                                </thead>

                                <tbody>
                                <tr>
                                    <td><span class="time">上午</span></td>
                                    <td th:each="item:${amWorkdayList}">
                                        <h3 th:text="${item.state}"></h3>
                                        <span>号源：<label th:text="${item.nsnum}" /></span>
                                    </td>
                                </tr>

                                <tr>
                                    <td><span class="time">下午</span></td>
                                    <td th:each="item:${pmWorkdayList}">
                                        <h3 th:text="${item.state}"></h3>
                                        <span>号源：<label th:text="${item.nsnum}" /></span>
                                    </td>
                                </tr>

                                </tbody>
                            </table>
                            <div>实时状态（根据预约情况更新）</div>
                            <table class="table">
                                <thead>
                                <tr>
                                    <th>星期</th>
                                    <th th:style="${weekday == 1 ? 'color:red' : ''} ">周一</th>
                                    <th th:style="${weekday == 2 ? 'color:red' : ''} ">周二</th>
                                    <th th:style="${weekday == 3 ? 'color:red' : ''} ">周三</th>
                                    <th th:style="${weekday == 4 ? 'color:red' : ''} ">周四</th>
                                    <th th:style="${weekday == 5 ? 'color:red' : ''} ">周五</th>
                                    <th th:style="${weekday == 6 ? 'color:red' : ''} ">周六</th>
                                    <th th:style="${weekday == 7 ? 'color:red' : ''} ">周日</th>
                                </tr>
                                <tr>
                                    <th>日期</th>
                                    <th th:each="item:${nextWeekDate}" th:text="${item}"></th>
                                </tr>
                                </thead>

                                <tbody>
                                <tr>
                                    <td><span class="time">上午</span></td>
                                    <td th:each="item:${amLiveWorkdayList}">
                                        <h3 th:text="${item.state}"></h3>
                                        <span>号源：<label th:text="${item.nsnum}" /></span>
                                    </td>
                                </tr>

                                <tr>
                                    <td><span class="time">下午</span></td>
                                    <td th:each="item:${pmLiveWorkdayList}">
                                        <h3 th:text="${item.state}"></h3>
                                        <span>号源：<label th:text="${item.nsnum}" /></span>
                                    </td>
                                </tr>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<div th:include="include :: footer"></div>
</body>
</html>